package com.example.weathermvvm

import android.annotation.SuppressLint
import android.app.Application
import android.content.Context
import org.litepal.LitePal

/**
 *
 * @Author： LJH
 * @Time： 2022/8/9
 * @description：LitePal初始化
 */
class MyOwnApplication:Application() {

    override fun onCreate() {
        super.onCreate()
        LitePal.initialize(this)
        context = this
    }

    companion object{
        @SuppressLint("StaticFieldLeak")
        lateinit var context: Context
    }

}